package com.bootdo.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.crm.dao.ContractProductDao;
import com.bootdo.crm.domain.ContractProductDO;
import com.bootdo.crm.service.ContractProductService;



@Service
public class ContractProductServiceImpl implements ContractProductService {
	@Autowired
	private ContractProductDao contractProductDao;
	
	@Override
	public ContractProductDO get(Integer rId){
		return contractProductDao.get(rId);
	}
	
	@Override
	public List<ContractProductDO> list(Map<String, Object> map){
		return contractProductDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return contractProductDao.count(map);
	}
	
	@Override
	public int save(ContractProductDO contractProduct){
		return contractProductDao.save(contractProduct);
	}
	
	@Override
	public int update(ContractProductDO contractProduct){
		return contractProductDao.update(contractProduct);
	}
	
	@Override
	public int remove(Integer rId){
		return contractProductDao.remove(rId);
	}
	
	@Override
	public int batchRemove(Integer[] rIds){
		return contractProductDao.batchRemove(rIds);
	}
	
}
